/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

/* 警告消息 */
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    color: white;
}

.btn {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.btn.edit {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.btn.delete {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.btn.cancel {
    background-color: #777;
    border-color: #666;
}

.actions {
    margin-bottom: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    height: 100px;
    resize: vertical;
}

.form-actions {
    margin-top: 20px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .current {
    background-color: #5cb85c;
    color: white;
    border-color: #4cae4c;
}
.search-form {
    display: inline-block;
    margin-left: 20px;
}

.search-form input[type="text"] {
    padding: 5px;
    width: 250px;
}

.search-form button {
    padding: 5px 10px;
    background-color: #5bc0de;
    color: white;
    border: none #46b8da;
    cursor: pointer;
}

/* 仪表盘样式 */
.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.dashboard-links a {
    display: block;
    width: 200px;
    height: 100px;
    background-color: #5bc0de;
    border: 1px solid #46b8da;
    border-radius: 5px;
    text-align: center;
    line-height: 100px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.dashboard-links a:hover {
    background-color: #31b0d5;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 内层表格样式 */
.inner-table {
    width: 100%;
    margin: 10px 0;
    background-color: #f9f9f9;
}

.inner-table th, .inner-table td {
    padding: 5px 10px;
    border: 1px solid #ddd;
}

/* 操作按钮 */
.btn {
    padding: 5px 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn.delete {
    background-color: #d9534f;
}

/* 内层表格的外边距 */
tr > td[colspan] {
    padding: 10px;
}
/* 分类提示样式 */
.category-hint {
    background-color: #f9f9f9;
    border-left: 4px solid #4CAF50;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.category-hint p {
    margin-bottom: 5px;
}

.category-hint ul {
    margin: 10px 0 10px 20px;
}

.category-hint li {
    margin-bottom: 5px;
}